package cc.shacocloud.luanniao.web.model.convert

import cc.shacocloud.luanniao.core.model.po.AiModelPo
import cc.shacocloud.luanniao.web.model.dto.output.AiModelOutput

fun AiModelPo.toOutput(): AiModelOutput {
    return AiModelOutput(
        id = requireNotNull(id),
        name = name,
        type = type,
        options = options,
        namespaceId = namespaceId,
        createTime = requireNotNull(createTime),
        lastUpdateTime = requireNotNull(lastUpdateTime)
    )
}